package User;

import Operation.*;

import java.util.Scanner;

/**
 * Created by xiebang
 * Description
 * User:小谢
 * Date:2021-09-21
 * Time:21:50
 */
public class NomalUser extends User{
    public NomalUser(String name) {
        super(name);
        this.iOperations = new IOperation[]{
                new ExitOperation(),
                new SearchOperation(),
                new BorrowOperation(),
                new ReturnOperation()
        };
    }

    public int menu(){
        System.out.println("==================普通会员菜单================");
        System.out.println("你好" + this.name + "欢迎来到图书管理小练习");
        System.out.println("0.退出系统");
        System.out.println("1.查找图书");
        System.out.println("2.借阅图书");
        System.out.println("3.返还图书");
        System.out.println("请做出你的选择");
        Scanner scanner = new Scanner(System.in);
        int chioce = scanner.nextInt();
        return chioce;
    }
}
